package in.smartride.dataInterface;

import java.util.Date;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class RideRequest {
	@SuppressWarnings("unused")
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;

	@Persistent
	private String from;

	@Persistent
	private String to;

	@Persistent
	private Date date;

	@Persistent
	private String uId;

	public RideRequest(String from, String to, Date date,String uId) {
		this.from = from;
		this.to = to;
		this.uId = uId;
		this.date = date;
	}

	// Accessors for the fields. JDO doesn't use these, but your application
	// does.
	
	public Long getid() {
		return id;
	}

	public String getFrom() {
		return from;
	}

	public void setFrom(String from) {
		this.from = from;
	}

	public String getTo() {
		return to;
	}

	public void setTo(String to) {
		this.to = to;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public String getUId() {
		return uId;
	}

	public void setUId(String id) {
		this.uId = id;
	}


}